package com.github.shiqiyue.app.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;

/***
 * 应用程序配置信息
 * @author wenyao.wu
 * @date 2019/1/8
 */
@Data
@Component
@ConfigurationProperties(prefix = "application")
public class ApplicationConfig {

    /***
     * 文件根目录
     */
    private String fileRootDir = "D:\\";


    /***
     * 文件服务器Url
     */
    private String fileServer = "";


    /***
     * 是否启用swagger
     */
    private Boolean swaggerEnable;

    /***
     * origin to allow.
     */
    private List<String> allowOrigins = new ArrayList<>();




}
